Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
struct npc_quests
Link copied to clipboard
Link copied to clipboard
entity quest
Link copied to clipboard
Link copied to clipboard
struct quest_info
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function consume_assets(assets_to_charge: list<(name: text, interface: text, amount: integer)>, account: account)
Link copied to clipboard
function create_quest(account_id: byte_array, id_prefix: text, quest_info: quest_info): quest
Link copied to clipboard
function create_quest_with_specific_id(account_id: byte_array, id: text, quest_info: quest_info): quest
Link copied to clipboard
function delete_ugc_quest(quest: quest)
Link copied to clipboard
Link copied to clipboard
@extendable function on_quest_accept(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
@extendable function on_quest_finish(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
@extendable function on_quest_skip(plot_id: integer, account_id: byte_array, quest: quest, optional_parameters: map<text, byte_array>)
Link copied to clipboard
function reward_assets(assets_to_reward: list<(name: text, interface: text, amount: integer)>, account: account)
Link copied to clipboard
Link copied to clipboard
function verify_owns_quest(id: text, account_id: byte_array)

Queries

Link copied to clipboard
@mount("ugc_quests.get_all_quests") query get_all_quests(cursor: page_cursor): (data: list<quest_info_with_id>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("ugc_quests.get_all_quests_from_user") query get_all_quests_from_user(account_id: byte_array, cursor: page_cursor): (data: list<quest_info_with_id>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("ugc_quests.get_npc_quests") query get_npc_quests(npc_name: text): npc_quests
Link copied to clipboard
@mount("ugc_quests.get_player_quest_journal") query get_player_quest_journal(account_id: byte_array): player_quests
Link copied to clipboard
@mount("ugc_quests.get_ugc_quest_configs") query get_ugc_quest_configs(): (enabled: boolean,)

Operations

Link copied to clipboard
@mount("ugc_quests.accept_quest") operation accept_quest(id: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("ugc_quests.delete_quest") operation delete_quest(id: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("ugc_quests.import_quest") operation import_quest(quest_info_with_id: quest_info_with_id)
Link copied to clipboard
@mount("ugc_quests.progress_quest") operation progress_quest(id: text, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("ugc_quests.register_quest") operation register_quest(quest_info: quest_info, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("ugc_quests.set_global_ugc_quest_parameters") operation set_global_ugc_quest_parameters(enabled: boolean)